package com.huatai.datadevelop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huatai.datadevelop.constant.Constant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author hecai
 * @description: TODO 接口状态监测
 * @date 2023/2/9 15:46
 * @Version 1.0
 */
@ApiModel(value = "接口监测实体类",description = "接口监测实体类")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("api_supervise")
public class ApiSuperviseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty("接口监测id")
    @TableId(type = IdType.AUTO)
    private Integer id;

	@ApiModelProperty("名称")
    private String name = "";

    /**
     * 接口名称
     */
	@ApiModelProperty("接口名称")
    private String interfaceName = "";

    /**
     * 接口类别
     */
	@ApiModelProperty("接口类别")
    private String type = "";

    /**
     * 接口地址
     */
	@ApiModelProperty("接口地址")
    private String url = "";

    /**
     * 接口状态（0:不正常，1正常）
     */
	@ApiModelProperty("接口状态")
    private Integer status = Constant.NORMAL;

    /**
     * 异常原因
     */
	@ApiModelProperty("异常原因")
    private String reason = "";

    /**
     * 检测时间
     */
	@ApiModelProperty("检测时间")
    private Date superviseTime;
}
